﻿/*
Copyright © 2011 François Karman

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

See <license.txt> for the complete license of the software.
*/

using System.Globalization;
using System.Resources;

namespace NUnit.Phone.Gui
{
    /// <summary>
    /// Provides the test used by the UI.
    /// </summary>
    public class Text
    {
        /// <summary>
        /// The encapsulated resource manager.
        /// </summary>
        private readonly ResourceManager manager;

        /// <summary>
        /// Initializes a new instance of the Text class.
        /// </summary>
        public Text()
        {
            this.manager = new ResourceManager(typeof(Text));
        }

        /// <summary>
        /// Gets or sets the current culture.
        /// </summary>
        /// <remarks>
        /// By default this property is <c>null</c> and the current culture
        /// will be used.
        /// </remarks>
        public static CultureInfo Culture { get; set; }

        /// <summary>
        /// Gets the text for the action 'start all tests'.
        /// </summary>
        public string ActionStartText
        {
            get { return this.manager.GetString("ActionStartText", Culture); }
        }

        /// <summary>
        /// Gets the title of the test list page.
        /// </summary>
        public string ListTitleText
        {
            get { return this.manager.GetString("ListTitleText", Culture); }
        }

        /// <summary>
        /// Gets the title of the result list page.
        /// </summary>
        public string ResultListTitleText
        {
            get { return this.manager.GetString("ResultListTitleText", Culture); }
        }

        /// <summary>
        /// Gets the title for the 'execution' section in the result page.
        /// </summary>
        public string ResultExecutionSectionText
        {
            get { return this.manager.GetString("ResultExecutionSectionText", Culture); }
        }

        /// <summary>
        /// Gets the title for the 'fail' section in the result page.
        /// </summary>
        public string ResultFailSectionText
        {
            get { return this.manager.GetString("ResultFailSectionText", Culture); }
        }

        /// <summary>
        /// Gets the title for the 'inconclusive' section in the result page.
        /// </summary>
        public string ResultInconclusiveSectionText
        {
            get { return this.manager.GetString("ResultInconclusiveSectionText", Culture); }
        }

        /// <summary>
        /// Gets the title for the 'skip' section in the result page.
        /// </summary>
        public string ResultSkipSectionText
        {
            get { return this.manager.GetString("ResultSkipSectionText", Culture); }
        }

        /// <summary>
        /// Gets the title for the 'traces' section in the result page.
        /// </summary>
        public string ResultTracesSectionText
        {
            get { return this.manager.GetString("ResultTracesSectionText", Culture); }
        }

        /// <summary>
        /// Gets the label for the 'pass' result.
        /// </summary>
        public string ResultPassText
        {
            get { return this.manager.GetString("ResultPassText", Culture); }
        }

        /// <summary>
        /// Gets the label for the 'fail' result.
        /// </summary>
        public string ResultFailText
        {
            get { return this.manager.GetString("ResultFailText", Culture); }
        }

        /// <summary>
        /// Gets the label for the 'inconclusive' result.
        /// </summary>
        public string ResultInconclusiveText
        {
            get { return this.manager.GetString("ResultInconclusiveText", Culture); }
        }

        /// <summary>
        /// Gets the label for the 'skip' result.
        /// </summary>
        public string ResultSkipText
        {
            get { return this.manager.GetString("ResultSkipText", Culture); }
        }

        /// <summary>
        /// Gets the label for the result detail title.
        /// </summary>
        public string ResultTitleText
        {
            get { return this.manager.GetString("ResultTitleText", Culture); }
        }

        /// <summary>
        /// GEts the label for the 'show result list' action.
        /// </summary>
        public string ActionShowResultListText
        {
            get { return this.manager.GetString("ActionShowResultListText", Culture); }
        }
    }
}
